package com.example.demo.Service;


import com.example.demo.Entity.ShopUser;
import com.example.demo.Vo.Response;
import com.example.demo.Vo.UserVo;

import javax.servlet.http.HttpSession;

public interface UserService {

    public ShopUser selectUserByUserEmail(String email);

    public ShopUser selectUserByUserID(String uid);

    public boolean registerNewUser(UserVo userVo, HttpSession session);

    public void changePasswordByUserID(String uid, String password);

    public void changeInfoByUserID(String uid, String name, String signature, String address, String pictureBase);

    public boolean findPasswordByUserEmail(String email, String verificationCode, String password, HttpSession session);

    public Response checkUserVar(UserVo userVo);

    public boolean checkUseAvailable(String uid);

    public void lockUserByUserID(String uid);

    public void unlockUserByUserID(String uid);

    public void changeAdminByUserID(String uid,boolean isAdmin);
}
